<!DOCTYPE html>
<?php
include_once '../model/member.php';
$member = new Member();
if (isset ($_GET['id_user'])) {
	$id = $_GET['id_user'];
	$detail = $member-> getMemberDetail($id);
	foreach ($detail as $id_user => $detail);{
	
?>
<html>
<head>
<title>Detail Anggota</title>
<link href="View/bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="View/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link  href="View/bootstrap/js/bootstrap.min.js" rel="stylesheet"/>
<script type="text/javascript" src="View/bootstrap/js/jquery-latest.js"></script>
</head>
</head>

<body>
	<div id="wrapper">
		<div id="content">
		<pre><center><h4>Detail Anggota</h4></center></pre>
		<blockquote><b>Username : </b><?php  echo $detail->id_user; ?></blockquote>
		<blockquote><b>Nama Depan : </b><?php  echo $detail->namadepan; ?></blockquote>
		<blockquote><b>Nama Belakang : </b><?php  echo $detail->namabelakang; ?></blockquote>
		<blockquote><b>Alamat : </b><?php  echo $detail->alamatuser; ?></blockquote>
		<blockquote><b>Telepon : </b><?php  echo $detail->notelpuser; ?></blockquote>
		<blockquote><b>Kota : </b><?php  echo $detail->kotauser; ?></blockquote>
		<blockquote><b>Email :</b><?php  echo $detail->emailuser; ?></blockquote>
		<blockquote><b>Kode Pos: </b><?php  echo $detail->kodeposuser; ?></blockquote>
		</div><!--end of cid content-->	
	</div><!--end of id wrapper-->
</body>
<?php } 
} else {
	header('location:./login.php'); 
}?>
</html>